load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "go_default_library",
    srcs = [
        "bazel.go",
        "runfiles.go",
    ],
    importpath = "github.com/bazelbuild/rules_go/go/tools/bazel",
    visibility = ["//visibility:public"],
)

go_test(
    name = "go_default_test",
    size = "small",
    srcs = ["bazel_test.go"],
    data = ["empty.txt"],
    embed = [":go_default_library"],
)

# Runfiles functionality in this package is tested by //tests/core/runfiles.

filegroup(
    name = "all_files",
    testonly = True,
    srcs = glob(["**"]),
    visibility = ["//visibility:public"],
)
